import request from '@/utils/request'

export function listPublish(query) {
  return request({
    url: '/publish/list',
    method: 'get',
    params: query,
  })
}

export function getPublish(publishId) {
  return request({
    url: '/publish/get/' + publishId,
    method: 'get'
  })
}


export function delPublish(publishId) {
  return request({
    url: '/publish/del/' + publishId,
    method: 'post',
  })
}

export function updatePublish(data) {
  return request({
    url: '/publish/update',
    method: 'post',
    data: data
  })
}

export function addPublish(data) {
  return request({
    url: '/publish/add',
    method: 'post',
    data: data
  })
}
